package br.com.orion.sga.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.orion.sga.exception.DaoException;
import br.com.orion.sga.model.dao.PeriodoLiberacaoDao;
import br.com.orion.sga.model.entities.PeriodoLiberacao;

@Service
public class PeriodoLiberacaoService {

	@Autowired
	private PeriodoLiberacaoDao periodoLiberacaoDao;
	
	/**
	 * listAll
	 * @return
	 */
	public List<PeriodoLiberacao> listAll() {
		return periodoLiberacaoDao.listAll();
	}
	
	public void save(PeriodoLiberacao periodoLiberacao) throws DaoException {
		periodoLiberacaoDao.save(periodoLiberacao);
	}
}
